#include "CFGDataBaseSetting.h"
using namespace xml_api;

CCFGDataBaseSetting::CCFGDataBaseSetting(void)
{
}

CCFGDataBaseSetting::~CCFGDataBaseSetting(void)
{
}

bool CCFGDataBaseSetting::SaveState(xml_api::Memento* m)
{
  return true;
}

bool CCFGDataBaseSetting::LoadState(xml_api::Memento* m)
{
  m_DatabaseType = m->GetInteger("DatabaseType");
  m_IPAddress = m->GetString("IPAddress");
  m_Port = m->GetInteger("Port");
  m_User = m->GetString("User");
  m_Password = m->GetString("Password");
  m_DatabaseName = m->GetString("DatabaseName");
  m_accountid = m->GetString("accountid");

  return true;
}